<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 王宇航
  Date: 2022/4/29
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
      integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<html>
<head>
    <title>Title</title>
</head>
<body>
<ol class="breadcrumb">
    <li><a href="${pageContext.request.contextPath}/QueryNoteByPageServlet">主页</a></li>
    <li class="active">修改留言</li>
</ol>
<form class="container" style="width: 400px" action="${pageContext.request.contextPath}/updateNoteServlet" method="post">
<c:forEach var="note" items="${requestScope.note}">
    <div class="form-group">
        <%--隐藏域 提交id--%>
        <input type="hidden" name="id" value="${note.id}">
        <label for="name">姓名</label>
        <%--readonly="readonly" 让输入框不可修改--%>
        <input type="text" readonly="readonly" class="form-control" value="${note.author}" id="name" placeholder="姓名">
    </div>
    <div class="form-group">
        <label>标题</label>
        <input type="text" class="form-control" name="title" value="${note.title}" id="exampleInputPassword1" placeholder="标题">
    </div>
    <div class="form-group">
        <label>内容</label>
        <input type="text" class="form-control" name="content" value="${note.content}" id="content" placeholder="标题"style="height: 82px">

    </div>
    <button type="submit" class="btn btn-default">提交</button>
    <button type="reset" class="btn btn-default">重置</button>
</c:forEach>
</form>
</body>
</html>
